<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
	</head>
	<body>
		<div id="app">
			<img :src="imageUrl" width="width"
			 v-on:mouseover="mouseover" 
			 v-on:mouseout="mouseout" />
		</div>
		<script>
			let app =new Vue({
				el:"#app",
				data:{//图片地址
					imageUrl:"https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3461852565,2805656891&fm=26&gp=0.jpg"
				},
				methods:{
					mouseover:function(){
						this.imageUrl ="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3321370472,1137044379&fm=26&gp=0.jpg"
						},
						
					mouseout:function(){
						this.imageUrl ="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3461852565,2805656891&fm=26&gp=0.jpg"
					}
				}
			});
		</script>
	</body>
</html>
